import { makeAutoObservable } from 'mobx'
import { getSceneList } from './api'
import type { SceneListType } from './interface'
import { levelLIst } from './const'
class Store {
    personModalVisible: boolean = false
    introduceModalVisible: boolean = false
    sceneList: SceneListType[] = []
    constructor() {
        makeAutoObservable(this)
        this.getSceneListData()
    }

    async getSceneListData() {
        const { data } = await getSceneList()
        this.sceneList = data
        console.log(this.sceneList)
    }
    changPersonModalVisible(val: boolean) {
        this.personModalVisible = val
    }
    personModalChangIntroduceModalVisible(val: boolean) {
        this.introduceModalVisible = val
    }
    changIntroduceModalVisible(val: boolean) {
        this.introduceModalVisible = val
    }
}
export default Store
